<?php
	include(ROOTPATH .'include'. DS .'protect.php');
	//include(ROOTPATH .'include'. DS .'checkUserLogin.php');
	include(ROOTPATH .'include'. DS .'initUser.php');
	include(ROOTPATH .'class'. DS .'mediaFile.class.php');
	
	$mediaFile = new mediaFile ;
	include "header.php";
	
	$user_id = getId('id');
	if($user_id == 0)
		$user_id = $user -> id()  ;
	
?>
<script type="text/javascript">var tagList='<?php echo $tagsUrl;?>';</script>
<script type="text/javascript" src="<?php echo JS_PATH;?>list.js"></script>
</head>
<body>
<?php

 require('top.php'); ?>
<div class="pos">
	<div class="contents">
        <?php require('nav.php'); ?>   
        <h2 class="title"><?php echo $navigation -> getList();?><span><a href="<?php echo urlRewrite('option=creatMedia')?>"><?php echo lang_upload ;?></a></span></h2>
        <div id="mediaList" class="mediaList">
        	<?php $mediaFile -> getMyFileList( $user_id , $num = '' , $isPage = true,$isMore = false ); ?>
        </div>    
	</div><!-- .contents-->
</div>
<?php require('footer.php'); ?>
</body>
</html>
